package com.cgsrp.cgsrp_user_province.service;

import com.cgsrp.cgsrp_user_province.domain.User;
import com.cgsrp.utils.Result;
import com.cgsrp.vo.LoginVo;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    LoginVo login(User user);


    boolean selectByPhone(String phone);

    boolean selectByEmail(String email);

    Object regist(User user);

    Long findMaxUsername();

    User findByPhone(String phone);

    Result getWallet(Integer userId);

}
